package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2025-03-03
 * @version: 1.0
 */
@Data
@Schema(description = "前端块类型DeepSeek提示词")
public class PromptTemplate implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @Schema(description = "父级id")
    public long parentId;
    @Schema(description = "级别")
    public int level;
    @Schema(description = "值")
    public String value;
    @Schema(description = "提示词")
    private String prompt;
    @Schema(description = "是否是默认提示词")
    private boolean hasDefault = false;
    @Schema(description = "排序")
    private int sort;
    @TableLogic
    private boolean deleted = false;
    @TableField(fill = FieldFill.INSERT)
    private long createdBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
